<?php
// +----------------------------------------------------------------------
// | zhanshop-marketing / ReportStatdayCrontab.php    [ 2024/12/26 13:22 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011~2024 zhangqiquan All rights reserved.
// +----------------------------------------------------------------------
// | Author: zhangqiquan <768617998@qq.com>
// +----------------------------------------------------------------------
declare (strict_types=1);

namespace app\crontab;

use app\task\AdReportTask;
use app\task\VisitReportTask;
use zhanshop\App;
use zhanshop\Crontab;

class ReportStatdayCrontab extends Crontab
{
    public function configure()
    {
        $this->setTitle("每日统计")->everyday(2);
    }

    public function execute()
    {
        App::task(AdReportTask::class)->statday(); // 广告渠道报告的每日统计
        App::task(VisitReportTask::class)->statday(); // 安装渠道的每日统计
        App::task(AdReportTask::class)->cleanListen(); // 清理广告监测
    }
}